package com.wyth.study.advancedemo;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends Activity {
    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }


    @OnClick({R.id.act_main_but_dispatche, R.id.act_main_but_dispatche2, R.id.act_main_but_annimation, R.id.act_main_but_navigation})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.act_main_but_dispatche:
                startActivity(new Intent(this, DispatchTestActivity.class));

                break;
            case R.id.act_main_but_dispatche2:
                Toast.makeText(this, "no code", Toast.LENGTH_SHORT).show();
                break;
            case R.id.act_main_but_annimation:
                Toast.makeText(this, "no code", Toast.LENGTH_SHORT).show();
//                test(null);
                break;
            case R.id.act_main_but_navigation:
                startActivity(new Intent(this, NavigationActivity.class));
                break;

        }
    }


    private void test(@NonNull String i) {
        Toast.makeText(this, "" + i, Toast.LENGTH_SHORT).show();
    }
}
